# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-scikit-optimize
pkgver=0.9.0
pkgrel=0
pkgdesc="Sequential model-based optimization with a 'scipy.optimize' interface"
url="https://scikit-optimize.github.io/"
arch="noarch !s390x" # blocked by py3-joblib
license="BSD-3-Clause"
depends="
	py3-joblib
	py3-matplotlib
	py3-numpy
	py3-pillow
	py3-scikit-learn
	py3-scipy
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/s/scikit-optimize/scikit-optimize-$pkgver.tar.gz"
builddir="$srcdir/scikit-optimize-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
a4c1bd589686dbbabcc5de38a4eb581c040cc2c3f83bc250ddcbe66314f03fc68b7b12d7679049da34c42445b446e1af3873f7ce90bec2a5361f0077ff3e9b74  scikit-optimize-0.9.0.tar.gz
"
